using System;
using Andshev.OrmTools.Linq2Query.Attributes;

namespace Andshev.OrmTools.Tests.TestData
{
    [TableMapping("TestEntities")]
    public class TestEntity
    {
        [Identity("TestEntityId")]
        public int TestEntityId { get; set; }

        [ForeignEntity("TestEntityCategoryId", true)]
        public TestEntityCategory Category { get; set; }

        [ForeignEntity("TestEntityParentId", "TestEntityId", false)]
        public TestEntity Parent { get; set; }

        [Column("Name", true)]
        public string Name { get; set; }

        [Column("Published", true)]
        public DateTime Published { get; set; }
    }
}